package test;

import com.alibaba.druid.pool.DruidDataSourceFactory;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.mchange.v2.c3p0.ComboPooledDataSource;
import model.dao.BaseDao;
import model.entity.Book;
import org.junit.Test;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;

import javax.sql.DataSource;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.sql.*;
import java.util.*;
import java.util.Date;

public class demo {

    @Test
    public void test() throws IOException {
        String json="{\"name\":\"张三\",\"age\":23,\"gender\":\"男\"}";
        ObjectMapper mapper=new ObjectMapper();
        Person person=mapper.readValue(json,Person.class);

        System.out.println(person);


    }
}
